package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.UserIntegral;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserIntegralMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserIntegral record);

    UserIntegral selectByPrimaryKey(Long id);

    List<UserIntegral> selectAll();

    int updateByPrimaryKey(UserIntegral record);

    void updateIntegral(@Param("newIntegral") int newIntegral, @Param("userId") Long userId);

    void updata(@Param("id") Long id, @Param("integral")Integer integral);
}